/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sim_test;

/**
 *
 * @author Administrator
 */
public class Sim_Engine {
    
    private int[] numberOfSquares = new int[2];
    private int[] widthAndHeightOfSquares = {75, 75};

    private Sim_ControllerMain simControllerMain;
    
    public Sim_Engine(Sim_ControllerMain scm)
    {
        simControllerMain = scm;
        
        numberOfSquares[0] = (int) (simControllerMain.getCurrentScenario().getSimMap().
                getBackgroundImage().getWidth(null) / widthAndHeightOfSquares[0]);
        numberOfSquares[1] = (int) (simControllerMain.getCurrentScenario().getSimMap().
                getBackgroundImage().getHeight(null) / widthAndHeightOfSquares[1]);
        
        //error checking and cleanup
    }
    
    public int[] getWidthAndHeightOfSquares()
    {
        return widthAndHeightOfSquares;
    }
    

    public int[] getNumberOfSquares()
    {
        return numberOfSquares;
    }

    
    
}
